/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ita.escolaita.ejb;

import br.ita.escolaita.model.entity.Frequencia;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Matheus
 */
@Stateless
public class FrequenciaEjbBeanBean implements FrequenciaEjbBeanLocal {

    @PersistenceContext(unitName = "escolaIta-ejbPU")
    private EntityManager em;

    public void salvar(Frequencia frequencia) {
       em.persist(frequencia);
       em.flush();
    }
 
}
